package com.yyc.system.service.impl;

import com.yyc.system.dao.TCourseClassTeacherMapper;
import com.yyc.system.model.TCourseClassTeacher;
import com.yyc.system.service.ITCourseClassTeacherService;
import com.yyc.core.AbstractService;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;


/**
 * Created by yyc on 2019/01/06.
 */
@Service
@Transactional( isolation = Isolation.DEFAULT, propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public class TCourseClassTeacherServiceImpl extends AbstractService<TCourseClassTeacher> implements ITCourseClassTeacherService {
    @Autowired
    private TCourseClassTeacherMapper tCourseClassTeacherMapper;

	@Override
	public List<TCourseClassTeacher> queryCourseMessage() {
		return tCourseClassTeacherMapper.getCourseMessage();
	}
	
	@Override
	public List<TCourseClassTeacher> findCourseMessage(Integer classId,Integer userId) {
		return tCourseClassTeacherMapper.getCourseMessageByUIdCId(classId,userId);
	}

}
